/*package com.shankungfu.main;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.alibaba.fastjson.JSON;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;
import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import com.nostra13.universalimageloader.core.listener.SimpleImageLoadingListener;
import com.shankungfu.GlobleConstant;
import com.shankungfu.R;
import com.shankungfu.bean.ReportEachBean;
import com.shankungfu.util.MyAsyncHttpResponseHandler;
import com.shankungfu.util.PhoneUtils;
import com.shankungfu.util.TestUtils;
import com.shankungfu.util.WebService;
import com.shankungfu.view.HorizontalListView;

*//** 
 * 应 需求方的要求，这个暂时去除掉，
 * @author WangQing
 *
 *//*
public class PublicInformationDetailActivity extends Activity implements OnClickListener{

	private HorizontalListView listView;

	private TextView report_each_title;
	private TextView report_each_author;
	private TextView report_each_date;
	private TextView report_each_content;
	private ImageView report_each_image;
	private String title,author,date,url;
	private Spanned article;
	private DisplayImageOptions options;
	private RelativeLayout progressBar;
	private ImageLoader imageLoader;
	private ImageLoadingListener animateFirstListener = new AnimateFirstDisplayListener();

	private Handler handler = new Handler() {

		@Override
		public void handleMessage(Message msg) {
			super.handleMessage(msg);
			switch (msg.what) {
			case 1:
				report_each_title.setText(title);
				report_each_author.setText(author);
				report_each_date.setText(date);
				report_each_content.setText(article);
				
				imageLoader.displayImage(url, report_each_image, options, animateFirstListener);
				break;

			default:
				break;
			}
		}

	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.public_information_detail_layout);

		init();
		updateForData();
		getData();
	}

	private void init() {
		report_each_title = (TextView) findViewById(R.id.report_each_title);
		report_each_author = (TextView) findViewById(R.id.report_each_author);
		report_each_date = (TextView) findViewById(R.id.report_each_date);
		report_each_content = (TextView) findViewById(R.id.report_each_content);
		report_each_image = (ImageView) findViewById(R.id.big_image);
		progressBar = (RelativeLayout) findViewById(R.id.progressBar);
		
		options = new DisplayImageOptions.Builder()
		.showImageOnLoading(R.drawable.default_icon)
		.showImageForEmptyUri(R.drawable.default_icon)
		.showImageOnFail(R.drawable.default_icon)
		.cacheInMemory(true)
		.cacheOnDisc(true)
		.considerExifParams(true)
		.displayer(new RoundedBitmapDisplayer(2))
		.build();
		
		imageLoader = ImageLoader.getInstance();
	}

	private void getData() {
		WebService httpclient = new WebService();
		RequestParams params = new RequestParams();
		params.add("serviceId", "charity_news_detail");
		params.add("app_info", "shankungfu");
		params.add("charity_news_Id", "9");
		

		AsyncHttpResponseHandler responseHandler = new MyAsyncHttpResponseHandler() {
			@Override
			public void onSuccess(String content) {
				getSuccessData();
				if (!TextUtils.isEmpty(content)) {
					ReportEachBean reportEachBean = JSON.parseObject(content,
							ReportEachBean.class);
					title = reportEachBean.getCharityNewsDetailData()
							.getCharity_news_title();
					author = reportEachBean.getCharityNewsDetailData()
							.getCharity_news_author().getName();
					url = reportEachBean.getCharityNewsDetailData().getCharity_news_img_url();
					String dateStr = reportEachBean.getCharityNewsDetailData()
							.getCharity_news_date();
					String article_content = reportEachBean
							.getCharityNewsDetailData()
							.getCharity_news_txt();
					article = Html.fromHtml(article_content);
					date = PhoneUtils.TimeStamp2DateForSKF(dateStr);
					
					handler.sendEmptyMessage(1);
				}
			}

			@Override
			public void onFailure(String content) {
			}
		};
		httpclient.request(GlobleConstant.REPORT_EACH_ADD, params,
				responseHandler);
	}
	
	private static class AnimateFirstDisplayListener extends SimpleImageLoadingListener {

		static final List<String> displayedImages = Collections.synchronizedList(new LinkedList<String>());

		@Override
		public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
			if (loadedImage != null) {
				ImageView imageView = (ImageView) view;
				boolean firstDisplay = !displayedImages.contains(imageUri);
				if (firstDisplay) {
					FadeInBitmapDisplayer.animate(imageView, 500);
					displayedImages.add(imageUri);
				}
			}
		}
	}
	
	private void updateForData() {
		progressBar.setVisibility(View.VISIBLE);
	}
	
	private void getSuccessData() {
		progressBar.setVisibility(View.GONE);
	}

	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.head_goback:
			finish();
			break;
		case R.id.head_refresh:
			updateForData();
			getData();
			break;
		}
		
	}

}
*/